package mandelbrot.server;

import com.ibm.tspaces.TupleSpaceException;
import com.ibm.tspaces.lock.LMAbortedException;
import com.ibm.tspaces.server.CheckpointException;
import com.ibm.tspaces.server.RollbackException;
import com.ibm.tspaces.server.TSServer;

public class TupleSpaceServer {

	Thread serverThread;
	public TupleSpaceServer() {

		try {
			TSServer ts = new TSServer();
			serverThread = new Thread(ts, "TSServer");
			System.out.println(ts.getHostName()+":"+ts.getServerHostPort());
			serverThread.start();
		} catch (LMAbortedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (RollbackException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (CheckpointException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (TupleSpaceException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
	}

	public static void main(String[] args) {
	
		new TupleSpaceServer();
	}
}
